package com.donggua.aichebao.commonui;

import android.app.Activity;
import android.view.View;

import com.donggua.aichebao.commonui.title.CommonTitle;

/**
 * Created by Administrator on 2017-08-30.
 */

public class DGOperatorBase extends DGOperatorNoTitleBase{

    protected CommonTitle mCommonTitle;
    public DGOperatorBase(Activity act,View view){
        super(act,view);
        init();
    }

    protected  void init(){
        mCommonTitle = new CommonTitle(mActivity,mMainView);
        mCommonTitle.setRightShow(false);
    }
    protected void setExitListener(){
        View.OnClickListener listener = new View.OnClickListener(){

            @Override
            public void onClick(View view) {
                exit();
            }
        };
    }
    protected void setTitleName(int id){
        mCommonTitle.setTitle(mActivity.getString(id));
    }

    protected void exit(){
        mActivity.finish();
    }


}
